var webpack = require('webpack')
var path = require('path')

module.exports = {
    mode: 'production',
    devtool: false,
    entry: {
        index: path.resolve(__dirname, '..', 'src', 'index.js')
    },
    output: {
        libraryTarget: 'umd',
        filename: 'test_menu.js',
    },
    target: 'web',
    plugins: [
        new webpack.DefinePlugin({
            env: JSON.stringify('production')
        })
    ]
}